<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\model\MemberInfo;
use app\common\model\Province;
use app\common\model\City;
use app\common\library\Token;
use think\facade\Hook;
use think\facade\Cookie;
use think\facade\Session;
use think\Validate;
use think\Alisms;
use think\cache\driver\Redis;
use fast\Request;
use fast\Random;
use fast\Date;
use fast\Cols;
use think\facade\Config;
use think\console\Command;
use think\console\Input;
use think\console\input\Option;
use think\console\Output;
class Index extends Frontend{
    protected $model = null;
    protected $middleware = ['Auth',];
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function initialize(){
        parent::initialize();
    }
    public function index(){
        return $this->view->fetch();
    }
    /**
    * 读取新闻
    * @method  post
    * @param   string  $username   用户名
    * @param   string  $password   密码
    * @param   int     $keeptime   有效时长
    * @return  数据列表返回
    * @returnparam tstr string 有效时长,低效时长 
    * @returnparam result tinyint 1,成功0，失败
    * @returnobject City
    * @returnparam stred tinyint 3,成功4，失败
    * @returnparam strcc string 字符串
    */
    public function news(){
        $newslist = [];
        return jsonp(['newslist' => $newslist, 'new' => count($newslist), 'url' => 'https://www.fastadmin.net?ref=news']);
    }

}
